FROM node:14.21.3 as builder
WORKDIR /app
COPY package.json .
RUN npm install --registry=http://registry.npmmirror.com/
COPY . .
RUN npm run build:prod

FROM nginx:latest
COPY --from=builder /app/dist /usr/share/nginx/html
